@extends('admin.layouts.admin')

@section('content')
	<h1>Ecrire une news</h1>
	{{ Form::open(array('route' => 'admin-post-add-news', 'method' => 'post', 'id' => 'news-form')) }}
		<div class="form-group">
			{{ Form::label('titre', 'Titre de la news') }}
			{{ Form::text('titre', null, array('id' => 'titre','placeholder' => 'Titre de la news', 'class' => 'form-control')) }}
			{{$errors->first('titre')}}
		</div>
		<div class="form-group">
			{{ Form::label('description', 'Courte description') }}
			{{ Form::text('description', null, array('id' => 'description','placeholder' => 'Courte description', 'class' => 'form-control')) }}
			{{$errors->first('description')}}
		</div>
		<div class="form-group">
			{{$errors->first('contenu')}}
			<div id="summernote"></div>
		</div>
		<button type="submit" class="btn btn-primary">
			<span class="glyphicon glyphicon-check"></span>
			Envoyer la news
		</button>
		<input type="hidden" name="permalien" id="permalien" value=""/>
		<input type="hidden" name="contenu" id="contenu" value=""/>
	{{ Form::close() }}
@stop